package _10define._09homework;

public class Test {
    public static void main(String[] args) {
        Animal animal=new Animal("宠物",8);
        System.out.println(animal.name);
        animal.call();
        Cat cat=new Cat("小黑子",8,"黑色");
        cat.call();
        cat.catchMice();
        Dog dog=new Dog("大黄子",8,"黄色");
        System.out.println(dog.name);
        dog.call();
    }
}

